if (!this.notStarted.length)
if (!this.notStarted.length)
if (Date.now() >= nextRest) { this._queueWorkItem(this._continueStartingClosure);
var nextTest = this.notStarted.shift();
this.running.push(nextTest);
nextTest.state.subscribe(newState => { newState === TestCase.State.Succeeded ? this.succeeded :
newState === TestCase.State.Failed ? this.failed :
var targetCollectionArray = targetCollection();
for (var i = targetCollectionArray.length - 1; i>=0; i--) { var t = targetCollectionArray[i];
if (nextTest.name > t.name) { targetCollection.splice(i + 1, 0, nextTest);
targetCollection.unshift(nextTest);
private _loadTests(namespace: any) { var byName: { [name: string]: TestCase; } = {}; var names: string[] = [];
TestPage.forEachTest(namespace, (name, test) => { var testCase = new TestCase(name, test);
var testCase = byName[name];
this.notStarted(this.all);
static forEachTest(namespace: any, callback: (name: string, test: () => void) => void) { for (var k in namespace) if (namespace.hasOwnProperty(k)) { if (typeof (t) === 'function') {